javascript passwords utilitiy