added promise for the chart elements, as sometimes drawChart would execute before the DOM element was available.
Merge pull request #41 from raventools/bug/moar-fixes

added promise for the chart elements