refactoring, new world method encapsulating $.each

Change-Id: I56b9f16608c8c9b08c9827a4226044f649d211e6