Fixing issue https://github.com/travist/jsencrypt/issues/11 and a global variable

Feel free to approve and merge...