added d.js to package dependencies to provide promise like interface