update manager.js