jQuery loading and compiling fixes

A couple fixes to fix issues loading and compiling jQuery.