populateoin sleepchart.js
refine average computations
refine average computations