Support JSONP callbacks

A quick fix to support JSONP style callbacks.