Coefficient Lambda Calculus Functional Programming Javascript