Changed main.js to call .click on the last tab, so that it can replicate any behaviour attached to the tab.