add documentation with examples for jslib and link to it in the README