replace for..in loops
Merge pull request #7 from nickb1080/for-in

replace for..in loops (fixes #6)