Post-process generated front-end files.

Fixes MLton/mlton#77 and fixes MLton/mlton#86.