Moved javascript to page specific .js file