removed global jquery from a directive