history.pushState(0, 0, '?'+location.hash.substr(1));
history.pushState(0, 0, location.hash.replace('#','?'));