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.
More test conversion, minor generation fixes
add support to less functions paramters braces