Potential fix for #240

Potential fix for #240 defined `getOwnPropertyNames` instead of using `Object.getOwnPropertyNames`