d3: Enable usage as an external module
d3: Fix file permissions

There is no reason to have this file executable.
Merge pull request #2658 from abustany/d3-enable-amd

d3: Enable usage as an AMD module (and fix file permissions)