Getting started with gaming in JavaScript