updated to use web-beautify instead of own