Optimize manage.js.