Use empty template$chartDiv if controls are used, as it already comes from lib/controls/script.html
show('inline') strips leading whitespace to avoid problems with Pandoc.
Use {{chartId}} in angular controller name to avoid conflicts.