Remove jQuery.ajax beforeSend, extract url var