Implement deferred methods to fix jsonp

Edit the source