Firefox v25 security error for insertRule

Firefox blocks access to stylesheets that are loaded cross-domain. Added
code to search for a local style. If a local style sheet isn't found
then the normal style tag insert is used.
http://stackoverflow.com/a/15233680

Tested in Firefox 25/Chrome 31/IE 11/Safari 5.1.7 on Win7