First implementation of using pushState