minor tweaks

Hi,
     I have made some small changes. Please do have a look.

Thanks.
I thought this would end up being:
weekly_alert = 0;
weekly_bug = 0;
for (var j=0; j<7; j++) {
    weekly_alert += count[i+j];
    weekly_bug += bug_count[i+j];
}