Update dxr.js

Deleted the old unused function