authored the main.js and got good functionality

also developed the look of the page