js-ctypes wrapper for libotr