a very very small js functional library