adding jquery intermediate