 item.nodeName === 'LI'
        })

        var tabLinks = liItems.map(function (li) {
            return getFirstChildWithTagName(li, 'A')
        })

        tabLinks.forEach(function (tabLink) {
            tabLink.onclick = showTab
            tabLink.onfocus = function () {
                this.blur()
            }
            var id = getHash(tabLink.getAttribute('href'))
            var contentDiv = document.getElementById(id)
            tabs.push({
                id: id,
                link: tabL