title: Can't import javascript libaries into web worker
body: <p>I cannot import any libraries into my javascript web worker using importScripts(). When I import my own separate javascript files it works fine but when I try and import a separate library such as jquery or easeljs it gives my the error:
  Uncaught ReferenceError: document is not defined</p>
  
  <p>however it clearly is correctly defined after i have continuously checked it. Anybody know what is wrong. Thank you.</p>