Need to put the references in the right order for JQuery to work.