refactor(map) Use Array.prototype.map instead of our own function

Replace helper functions with the native ES5 method