add link to main page, js to bottom of page