Update index.js

Added missing hasOwnProperty checks to two for .. in loops.
Update index.js

Added missing hasOwnProperty check to for .. in loop.
Merge pull request #6 from poldridge/patch-1

Patch 1