Add support for CommonJS module definition

The use-case being [atom-shell](https://github.com/atom/atom-shell), which requires that client-side JavaScript is included using the CommonJS `require` module convention.

Chart.js works like a charm running in atom-shell once it uses `module.exports`. 

:relieved: