An ECMAScript library for cryptography and random generators