Detect Firefox and fix "window not defined" error

Firefox v.24 shows a "ReferenceError: window is not defined". So, when Firefox is detected, change the URI mechanism to data:-URIs.

Chrome will use the "native" version, and Internet Explorer the previous javascript: URI method.

I did not run minify or tests, though it seems to work in all current versions.