Adding New Properties to Objects in JavaScript: an Example