move embedding code base.html -> embed.js