Change to prototype chained version.
Merge pull request #1 from Polymore/prototypeChain

Change to prototype chained version.