Get rid of |for of| loops, to make it compatible with other browsers.