JQuery conversion and other fixes

Converted to use jQuery, added responsive display, replaced non-compliant HTML bits,  more sanity checking, etc.