themes/base: add json decoding to xhr.js