API wrapper for HeadlessApp.com for use with node.js