I found this the other day. It’ll “pretty print” your js to conform with general whitespace standards that everyone except you follows.

 

 

I now always run my code through this before jslinting (http://jslint.com/).