added function (.preview) to export d3.js to svg element for saving. Still require used to left click and save as