Recopied create.js to templates