two typos
seriously who uses a do/while loop?
removed more do/whiles
return is not a function
may be a micro-optimization but I did perf it and it's a lot faster in older ie and somewhat faster in recent chrome
clean ups for makeMBR
set rectangle is never used nor does it do anything
same micro optimization as before but seriously http://jsperf.com/min-cwm
better tests