Added socket_events.js