Fix #1159 - Added a workaround for replaceState url bug in Chrome/Webkit