limit scope of B variable

without this, sjcl.random.randomWords() fails after scrypt is called