Porting to a node app