Added `global` and `curry` functions to JS API.
Added `map`, `each`, `head` and `tail` functions to store JS API.
Added `shuffle` and `trunc` to JS vector API.