Embed post as JavaScript