Sort of chunking JS.
Added a JS template.