Bug 1002920 - Use plain for loops instead of for...in for ES5 compatibility. r=stas