Added defensive code to protect against an instance where dynamic stylesheets are not supported (I'm looking at you, Rhino...)
Removing delegation in favor of adding a handler directly on the element