update code to work with latest threejs changes
Merge branch 'master' of github.com:abepetrillo/threejs-sockets