code as below:
function(){
log1();
function log1(evt) {
alert("1");
}
}();
on firefox 8, nothing happend,
and error log1 is not defined shown in firebug console.
The code could be executed succeeded on Chrome and IE9.
Your function can not be executed.
you can make it like this way: