Instantiating SockJS correctly

Making sure SockJS is instantiated correctly using 'new'