moving from php verification to js, current progress: selfpasswd