app.js contents split out to different files
content separated out of index