This is actually "unofficial code" that I wrote, not Dynamic Drive code. But it's based upon code from Dynamic Drive and/or JavaScriptKit.

First thing I'd suggest is notice this line:

...