using history.pushstate to change page urls