'Reformating blocks of javascript?

I recently downloaded a template that uses a .js file

It has no formatting of any kind and the file is just a single block of code ( pages worth of it ) Are there any ways to automatically reformat the code as it should be? Trying to search for single lines that I need to edit has been a nightmare.

I am a Mac OS user, using Dreamweaver CS5.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source