Update sockets.js
Update scripts.js
Merge pull request #1 from idunnowhy9000/master

Fix crash bugs