added d3, updated viewer.coffee added a template autorun, not working very well