Moving ajaxJSONP to a internal function.