A boilerplate for api interaction in node.js