Incorrect use of getOwnPropertyNames(). Back to using "for..in".