Fix jquery.js inclusion to be in the header instead of footer

Otherwise calls to jQuery inside the HTML cannot work because jQuery is not included yet.