When you view a JavaScript file, Clippy will ask you if you want to format it.This extensions builds off of Einar Lielmanis's JSBeautifier project. If you view a JavaScript file in your browser, you will be given the option to format it. You can set specific formatting settings in the options page of the extension.
The source code for this extension is available on GitHub at https://github.com/rixth/jsbeautify-for-chrome
Logo by Clement Ng, http://clmnt.com
Reviews of JSBeautify for Google Chrome™ extension