Update dpi.js

Fixed a minor bug which would cause an error to be thrown if no `body` element is found