Generating random password using node.js