Js fix for url