Generating random keys for NodeJS