Remove dead code, fixes #15738 !strict
Don't use .on() method on targets that are DOM nodes so we don't use incompatible jQuery or Prototype version, refs #15862 !strict