Javascript code to interact with the Bodymedia API in node.js