I just stumbled upon the javascript garden
http://bonsaiden.github.com/JavaScript-Garden/
a nice page explaining some weird javascript usage errors,
I especially liked the sections about
"Scopes and Namespaces"
http://bonsaiden.github.com/JavaScript-Garden/#scopes
and the "Automatic semicolon insertion"
http://bonsaiden.github.com/JavaScript-Garden/#semicolon
Maybe this is of some help to you
Cheers,
Torsten
--
Torsten Ziegler
tor...@ziegi.de