fixed issue with js for updateAccount