[jQuery] Javascript, or only Javascript-inna-browser?

[jQuery] Javascript, or only Javascript-inna-browser?


Is jQuery supposed to be specifically targeted at Web client-side
(i.e., browser) usage? Or to make Javascript easier in general? Most
of its functionality seems aimed at the former, but there are a number
of aspects that I can see would be useful in now-client environments.
I ask because currently jquery.js is dependent on 'window' being
globally defined, which of course isn't the case for, say, a Rhino
environment.
Thanks again..