simple game with javascript