added template.js with c9.kernel functions