Update doT.js

if debug function is defined then run str though debug function before init