added script.js for interactions on MainPage.html