Updated server.js to run easily on Cloud 9 IDE