fixed error in tab selector
implemented intended functionality
Merge pull request #129 from ajstanley/7.x

Tabs has been breaking javascript.