assign a URL variable to a JS variable