Simple JavaScript formatter.
Indents a javascript string with the indent size passed as a parameter.

Uses rhino and http://jsbeautifier.org/beautify.js to achieve this