A number guessing game using Javascript