now working, substituted socket.to(...) with io.to(...), added files for...

... tern and jshint