added js bindings