Move more javascript tests
Add ability to generate comments

Moves the formatters into the generator file.  Not ideal factoring, but attempting not to repeat myself.