Include jquery in header instead of footer
Optimization : Avoid useless checks when current themetype doesn't match checkpart's theme type