account panel javascript