Fix syntax error in controller.js