Main image: use document.body.clientWidth

document.width is super old and was deprecated years ago. It no longer
works and returns undefined.
Quo.js: Use Quo.js methods everywhere

We really do need something to deal with browser incompatabilities,
they are sitll aprt of our lives. We could use jQuery (and still may, if
Quo.js ends up annoying)