Create scripts.js

top bit is responsible for the tab-switching, while the bottom section loads the selected tab on page load, while the other tab(s) content is fetched via an onClick event handler