Fixed bugs with the router and pushstate in some browsers (firefox and opera)