function changeurl() {
            // if it's okay
            if (window.history.pushState) {
                // change the hash
                window.history.pushState(index, index, "#" + index);
            }
        }
// method that changes the url with HTML5 feature history pushState
method that changes the url with HTML5 feature history pushState
method that changes the url with HTML5 feature history pushState
function changeurl() {
            if (window.history.pushState) {
                window.history.pushState(index, index, "#" + index);
            }
        }
function changeurl ( ) { if ( window . history . pushState ) { window . history . pushState ( index , index , "#" + index ) ; } }
method that changes the url with HTML5 feature history pushState
method that changes the url with HTML5 feature history pushState
// if it's okay // change the hash