convert Ruby app to Node app