Functional js lib