change dimple.r to toJSON2 to pass js functions
add defaultColors to dimple script template chart.html