Remove erroneous debugging line
Use for..of where possible