And now for a little Javascript since D3 is really testing it