Moved jquery into footer