adding jquery to template