moved jquery to js