small changes to fix issues with COR to node.js server
small changes to fix issues with COR to node.js server