Add var before newURL to try to fix Safari bug.