Fixed for working in webworker

using document instead of window.document was giving the error "document is not defined".
I am using chrome canary 28 (latest)
typo fix, Fixes #709
Merge branch 'master' of github.com:jrburke/requirejs
Relates to #407, link to wiki page for deployment scenarios
update jquery sample to 2.0.0 link
Merge pull request #718 from basarat/patch-1

Fixed for working in webworker