Update tabs.js to better support dynamically adding tabs.
Merge pull request #538 from tsteiner/develop

Update tabs.js to better support dynamically adding tabs.