Updating structure of main.js
Adding uncommented, exercise version of the app