Updating the chart with new data shows chartObj.destroy() is undefined