You're talking about obfuscated or minified JavaScript.

http://jsbeautifier.org will reverse it for you.