chartRegistry was flooding global namespace

Without using `new`, the `this` context is the global context
Merge pull request #148 from rthompson-au/master

No more flooding of global namespace. Now dc should be the only global variable added.