Create file for server in NodeJS