Moving existing app to node app