PHP -> NodeJS Transition