Respond to code review comments

- Prefer .forEach over .map, for efficiency
- Return "this" from prototypes, as we do not have a "self" to use.