moving the websocket test to the jade templates