implement JavaScript closure #5