lib: support access-pair, generalize js-calls