update script js