update script.js in singleplayer