Fixed syntax error in controller.js