renaming main.js and using angular view