Js bindings implementation