renamed controller.js to main.js

for clearness