JavaScript URL modifications