Update tabs.js

Fix for issues #744 and #790