Convert 'chart' file to JS and CommonJS
Add jshint config