               tab.link.className = 'selected'
                    tab.content.className = 'tabContent'
                } else {
                    tab.link.className = ''
                    tab.content.className = 'tabContent hide'
                }
            })

            await igv.visibilityChange()

            // Stop the browser following the link
            return false
        }


        function getFirstChildWithTagName(element, tagName) {
            for (var i = 0; i < element.childNodes.