Formats code of controller.js.