Format your js code with this lightweight formatter. It uses the format script from http://jsbeautifier.org to make your code look as good as possible. You can edit the options in the code itself and the option property documentation is located in the formatter script.