moved jquery declaration