Fixed Flask Tornado SockJS Example

The Tornado SockJS example had some code errors and incorrect construction (probably copied from the socket.io example).