split angular code up into a basic app.js file and introduced a controllers/ directory to split up the code