Use jQuery in updateUrlField function