A method, system, Web-environment and computer program product for automatically generating proxies and meta-proxies for script code in a document. The invention preferably operates with a system that allows for JavaScript to be utilized on the server-side.