#34 Javascript error on Xhgui.linegraph with firefox

The current javascript date creation used in Xhgui.linegraph isn't working on firefox
 see #34