gameinit Anjularjs-like