renames main.js to controller.js