Running d day total added to the main plot. Error correcting. Removing
unsed Javascript.