update script and server js