Create nacl_factory.js