js-beautify to improve readability of this mess