working UI->js bindings