Quasilocal energy in FRW cosmology