Handling JSONP callbacks when returning result for a upload