Fixed controller.js to be compliant with js-beautify