A port of path for cortex from nodejs