Fixed array for in iteration that was breaking IE8