Use crypto.getRandomValues() for better random IVs in the browser.