e' chiaro che va in loop

risolvi alla buona sostituendo a
window.location="explorer.html";

if(window.location.indexOf('explorer.html')<0) window.location="explorer.html";