Fixed the ajax loading problem of double hits
Added hash change instead of page load for page refreshes
Detect hash change
Put ajax queue in one function loadPage();