Functional JS library