Lambda calculus in JavaScript