Added controller.js