Improves junit-support.js. Starts to rewrite generator