more slight tweaks to js to make more IE-compatible
Debug code
s/6.5.0/6.5.1/