Game's constructor receives JavaScript object.
Canvas is created on the fly and game's container is centered on resize.