WinJS Promises inside of a node_module