Use a normal for loop

The alternative being combining `for…in` with `hasOwnProperty` I thought using the vanilla loop was preferable.