A simple guess random number game using javascript