fixed typo in controller, relaxed jshint standards