add function to merge arrays and sum keys values
correction of jqplot bug date with momentjs