Moved JQuery and JS scripts to head rather than body