decoupling paths to controller.js