Fix JSHint error on Promise.