added functionality to morris.js