Polyfill Math.log2

Polyfill `Math.log2()` in the diceware constructor.