fixup! Implement cloning steps for script element

Fix virtual method call