, Bas wrote

1
document.body.clientWidth;

What's that line doing there?

Causing the script to crash early when the browser doesn't support that property? Otherwise, I have no idea.