Consistent use of promisejs