Adjust scripts to better account for dom loading errors, add graph-of-averages script