Add chart to window scope for dynamic series addition

Slight reworking of solution for Issue 65, exposing the chart object in window scope using the placeholder to ensure uniqueness.