Moved main.js towards bottom of page; must load after angular script is declared

Created 'myApp' service to share controller data and binding, rather than declare parent scope within index.html