jshint corrections and documentation for controller.js
jshint corrections and documentation for browser.js