client: more de-jQueryification

Part of an effort to remove dependency on jQuery.

$ instances left: 364
client: no jQuery in handling window resize

Part of an effort to remove dependency on jQuery.

$ instances left: 320