Protecting your Firefox OS App code
hacks.mozilla.org
hacks.mozilla.org
This kind of lightweight obfuscation only works if your product is of very low value. At that point, you're better of spending the few minutes of obfuscating on making your product more valuable.
The only real useful obfuscation is on malware (which always has a negative value to the user), and on games to gain a couple of non-pirated days after launch.
The only real prevention is to not run code on the user's device (like Diablo III).
Most developers complaining about this are just surprised to learn that reversing is relatively easy and it reflects more on their lack of knowledge than an actual problem.
Disclaimer: In 2004 I actually wrote a decent IL obfuscator, etc. I never shipped it because as I got better at writing it, I got better at reversing, until I realised it was a stupid, pointless battle. I guess that makes me less of a business person.
For a group supposedly keen on JS that's a really stupid recommendation.
There is no step 2
Either way, the only way to protect your code 100% is to run it on your own machine, and not on the user's.