Make use of jQuery, other minor tweaks

WIP