Script and Mainpage