JavaScript: check if number