update singleplayer js file