Added web worker support

I added a simple to check to the library. You can now load the lib in a webworker context by doing the following:

importScripts('../lib/nacl.js');