add cdn assets to config.yml
update rChart template
refactor rCharts Class to support CDN