removed index.html from window.location