modified js file for guess the number