Changed data table creation from using DOM to d3.js