Restore templating to embed.js