Port of Rails app to Node