Properly support both JSON and JSONP