Implement connect logic for JSONP (not cleaned up)