Slightly smaller standalone version
Fire initial popstate earlier on document.ready