Modifications to work with node.js API server