Added function purifyObj() to remove an object's prototype chain (i.e. omit all inherited properties like toString, __proto__, etc.)
purifyObj()
toString
__proto__