I don't understand why you have a isIE9 variable in the scope instead of using the gaSniffer directly. Why is the application responsible for determining that's it's IE9?