use http://jsbeautifier.org/