NodeJS version of the API