javascript URL fix