winjs branch
act return promise, added wrap params