Code of universal connection module for JavaScript.