First example game in javascript