random.js: Fix for node-webkit trying to use window