if input is not a number javascript