Secure random passwords in javascript