Changes in JavaScript API

- `recordSet.map` now creates and returns a new array from returns of callback 
- `recordSet.each` calls callback on each element and returns recordSet (function of `map` before the change)