JS: fixing morris bar issues