Although Javascript doesn’t contain a DOM function for Node.insertAfter(), you can easily emulate it using Node.insertBefore — and even call it via Node.insertAfter()
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed