Actually electron does not contribute much to the mass of the atom. Electron is much lighter than proton. Hydrogen has one proton while helium has two proton and two neutron. Since the mass of proton and neutron are same, the mass of helium is four time more than hydrogen.