moved around the functions in frontPage.js so that it would pass the jslint violations