allow for older d.js versions