refactor app and add socket.io
remove npm-debug.log file