1. A method for on-the-fly rewriting of scripting language, the method comprising: receiving a request for a hypertext markup language (“HTML”) document at a server-side of a network; retrieving the HTML document at the server-side; analyzing code of the HTML document at the server-side with a parser and a runtime engine; identifying a portion of the code of the HTML document to be rewritten, wherein the portion of the code comprises at least one aspect of a scripting language; and rewriting the portion of the code of the HTML document into a method call of the scripting language to create an HTML document with rewritten code at the server-side by the parser and the runtime engine.