Javascript: How to check if a string is a Number