Extract jquery to the header