removing templates.js hardcore