Updated server.js to work on cloud