HTML beautifier based on https://github.com/einars/js-beautify