adding jsbeautify and cleaning up textwrapping