Fixed small error in wptools.js (this. missing)