if variable is not a number javascript