Fixing up a bug in the node js server