Fixed: optimize access to object property

Accessing a property via dot notation is faster than indexing via a string.
Typo: fixed spelling in comment