Moved jquery declarations to header