created dom-event js script to handle client DOM operations
updated branch
declared global var SOCKET for easy access to data