I wrote a self invoking function in both firefox and chrome it it wouldn\'t invoke.
I wrote something to the effect of
(function () { alert(\"THE\")
This self invoking function with return value will work in all current browsers(Safari, Chrome and Firefox) without issue. This function executes immediately, automatically and anonymously.