Initial port of G5-JS, including a working demo-game-loop example.