Added js example
Added js example to lib