Fixed typo in d3.js code that caused graphics errors