removed dup mainpage.js