Separate the d3 stuff into separate files