Optimizations of the generated JS code.
Cleanup