updated template and niche-rt.js