Added external script loading functionality for selected menu item. First mainpage.html done