js code style
fix mean to use zero for days without commits
made parseRawData() inputs explicit
removed unnecessary calls; formatting
a bit faster mean calculation
better color for mean line; removed unused statements