11. A method comprising: identifying a scripted module and a native module, at least one of the scripted module and the native module configured to interact with the other of the scripted module and the native module in a web-browser; interpreting the scripted module in a scripting environment of the web-browser that restricts interpretation of the scripted module according to one or more security policies; executing the native module in a native environment of the web-browser, the native environment configured to securely execute computer-specific commands of the native module by at least one of restricting the native module from accessing particular computer resources and restricting execution of particular commands; and asynchronously passing, from one of the scripting environment and the native environment to the other of the scripting environment and the native environment, a data object by value so as to provide a copy of the data object that is available to the scripted module or the native module in the other of the scripting environment and the native environment, respectively.
11. A method comprising: identifying a scripted module and a native module, at least one of the scripted module and the native module configured to interact with the other of the scripted module and the native module in a web-browser; interpreting the scripted module in a scripting environment of the web-browser that restricts interpretation of the scripted module according to one or more security policies; executing the native module in a native environment of the web-browser, the native environment configured to securely execute computer-specific commands of the native module by at least one of restricting the native module from accessing particular computer resources and restricting execution of particular commands; and asynchronously passing, from one of the scripting environment and the native environment to the other of the scripting environment and the native environment, a data object by value so as to provide a copy of the data object that is available to the scripted module or the native module in the other of the scripting environment and the native environment, respectively. 12. The method of claim 11 , wherein the data object is of a dictionary type.