js: expose methods