Fix reconnection tests on browsers using JSONP