Fixed bug in account.js

A typo prevented users from leaving groups.