Game engine for the browser