title: Java: format Javascript code
body: <p>In my architecture Javascript code is generated in the server.
  A huge chunk of Javascript code is generated, stored in a <code>java.lang.String</code> and sent to the client side.
  I want to more easily debug the generated code (both the generation and how it runs).</p>
  
  <p>Someone knows an easy way to format Javascript code?</p>