Fixed d is not defined error.
-Getting error d is not defined on api.js.
Merge pull request #1 from johnrussell9983/master

Fixed d is not defined error.