Fixed support for browsers without pushState

There was a severe bug which would break any javascript because the smoothState function is not provided