debugged templates and now have a working d3 graph