Fix for Chrome and Safari popstate on page load, popstate is ignored until page is rendered once through click. Also removed unncessary url check from hashchange listener