renamed main.js to controller.js