check if variable is not a number javascript