Do some wscript magic to combine/generate files.

(Thanks to Matthew Tole)