add for loop to iterate over categories, add minified d3 to vendor, require in asset pipeline