js for editaccount