Update register-manager.js