Fixed bug in app.js, client now connects properly