JavaScript is a functional language; let's be functional.