Putting client js generator into a function that can now be called from, for example, a gruntfile for generating a local copy of the file for concatenation and minification into client app.