moving templates.js to plugins folder