loading jquery at right time