Guess the Number in Javascript