Once you obfuscate the JavaScript code, its actually a similar situation to that with Java or even regular C++ programs to a lesser extent, because you can still 'hack it up'. Look at all of the mods for Minecraft, for example.
What? Take a look at Google Closure Compiler - it renames all identifiers to nonsense, making it impossible to work with, and not affecting performance at all.