Support Ajax promise interface for JSONP as well

References #604