Changed controller.js