ngDocCode: replace the promise fail/success wrappers with the simpler and idiomatic ".then(done, done)"