Using .map extension on promise directly