Restructured angular code to have an app.js.