Is awesome but I think we need to change this to be `expandedTabs.tabs.length`.

If you `console.log(expandedTabs.tabs('length'))` we get back the entire `xml-form-elements-tabs` object. When we subtract 1 from this we result with a NaN (not a number). Seems very odd that it was still working but if we change it to the proposed everything seems to work.