Load a bunch of JS files, and output a subset of resulting global vars into a file.