Small javascript semantic foreach utility.