Javascript, any clean up tools written in javascript itself?
<p>I'm basically looking for a javascript library that accepts an arbitrary string which may be valid javascript and returns a "cleaned up" version based on javascript indention rules.  It would be nice if the library also did css and html.  </p>

<p>Barring that, if someone has an interesting idea for doing it from javascript I'd love to hear it.  </p>
