add of js main game structure