move initBcCharts to window obj