Improve API design of JavaScript parser factory.
Add name to template.