Remove jQuery dependence

removed use of jQuery.trigger and instead monkey-patch the googletag object with methods 'on', 'off', and 'trigger' and value 'events'.
after running through jslint also cleaned up regexes and var declarations.