Merge pull request #6 from orefalo/master

Code clean up and optimization
Removed senseless var declartion.

No need to use var name = varName[subProp] when useage requires refering
to varName[subProp] multiple times anyway.