added Mean±2 Std lines and filtered out NaN values from data

Added mean line and mean±2 stander deviation line.
Filtered out NaN values from data.
Updated to d3 version 3 and cleaned unnecessary code