NodeJS implementation of berry_backend