Fix routing error in NodeJS implementation

Fix routing error in NodeJS implementation