Changed main.js to switch to the new tab when a search is performed.