Cleaning JS output

Cleaning up JS output to maintain format