Update m2.dialogs.js

Updated JS widgetHistoryChart fn - date being 0 - 11 based.
Fixes Issue #7