This looks like a good solution, thank you.But i'm still wondering if there might be a way to trigger/create the objects centralized from a script object, maybe like a self-invoking function: (Object.prototype.hideField = function(){ if (this.className == "field") { this.presence = "hidden"; ...