> window.addEventListener("load", loadProto(), false);
As a side note, this probably doesn't do what you wanted it to. That
calls the loadProto function and tries to add its return value as an
event listener. You probably meant
> window.addEventListener("load", loadProto, false);
right?