change to pure d3 and add avg line
have to name things properly
undef this
localhost is wrong