try this change (just a guess):
var checkHash = function() {
var hash = window.location.hash.substring(1);
for (var i = 0; i < hypeDocument.sceneNames().length; i++) {
if (hypeDocument.sceneNames()[i] == hash && hypeDocument.currentSceneName() != hash) {
hypeDocument.showSceneNamed(hash);
break;
}
}
};
if (window.loadedHashLocation != true) {
window.loadedHashLocation = true;
checkHash();
window.onhashchange = checkHash;
}
window.location.hash = "#" + hypeDocument.currentSceneName();