show a tab using js

this is mainly for selecting the tab depending on the hash that's in the url