a little game project with javascript