websocket example kind of working. need to access page directly for it to function properly. Need to move around some javascript