javascript for frontpage.html