Create ko.promise.js