Add replace; works in FF but not in Chromium