Many updates - JSLint, old IE, minor optimizations

I've fixed the many JSLint violations; added support for old IE (not tested with 6, but who cares); created an "example/test" HTML page; added minor optimizations (not creating functions in loops, etc.)