Allow customization of the JS variable name

Needed when manipulating the object in JavaScript after rendering. Especially of there are several charts in the same page.