Fix JS bug in account page.