Server side creation of JavaScript in order to create dynamic JavaScript for the client