Update app.js

fix misplaced closing tag for sockets