fix dev build from potentially missing templates.js