Fixing typo bug with d3 item script