creating json with ele & time for morris.js graph