added support for JSONP in /api/update.