Fixing issue https://github.com/travist/jsencrypt/issues/11 as discussed.