check if string is not a number javascript