credit to js-beautifier