Abstraction for the CS198 API in Node applications