1.  PNG generated in modals.  Should work now in IE as well as chrome.
2.  Moved chartInputs form an array into a closure storing the chart object plus base64 image.