Allow string for ajax data. Allow element for jQuery selector

I've added two changes. One to allow string data for ajax calls. Another to allow an Element as a jQuery selector (jQuery wraps the Element with a jQueryObject)