fixed injectDOM bugs in experimental defn widget