cleanup the last of the mess than coco left
client: use html API for document width and height

 * avoid $document.height() and $document.width()
 * avoid $document.ready()

Part of an effort to remove dependency on jQuery