Final set up for front page
Completed javascript