Javascript based game project