Uses UMD, as suggested in issue #1
add d3 as dependency