More work on making the game work with the newest jsEngine