JavaScript Fundamentals: Mapping a JavaScript Array