Replaced Deferred with WinJS.Promise for better integration with WinJS applications