added cloud9 fix to server.js