Update app.js

Updated to work with latest socket.io