Basis for functional programs in JavaScript