Use d3's filter method rather than underscore.js
Corrected bad resource location
Use d3's map function