controller.js file placement