Simple password generator in JS