javasciprts url correction