guess the number game in JavaScript