Started restructuring app to more scalable format
Completed initial restructure--bugs exist
Finished initial restructure: app working again
Slightly adjusted formatting on app.js