remove unused custom element code

I think the custom element code here was an unfinished experiment that isn't used by the script implementation. This branch removes that experimental code, which breaks in browsers without custom element support.