Check for jquery property instead of instanceof

`foo instanceof $` doesn't work if an extension is using it's own version of jquery. Look for `foo.jquery` instead.