1. A computer program product comprising one or more computer storage media having thereon computer-executable instructions that are structured such that, when executed by one or more processors of a web server, cause the web server to perform a method for web server to expose a function to a browser, the method comprising: an act of receiving a request for a web page that is one of a plurality of web pages in a web application; in response to the request for the web page, for at least one server side function of the web application, an act of formulating a corresponding script language function that defines a matching name and parameter set of the server side function, the script language function having a body that, when executed, serializes at least the name and parameter set of the server side function; and an act of responding to the web page request with web page code and the corresponding script language function.