move url to js