fixed update.js