removing websockets code from js