$tabs.on(
            'click', 'a', function() {
                var index = $tabs.find( 'a' ).index( $( this ) ),
                    hashIndex = window.location.hash.match( /^#(\d+)$/ );