Possible Duplicate:
How do you prevent your JavaScript / HTML5 web game from being copied or altered?
If a game client is developed in Javascript, the source code can be found in browser. It's dangerous, because it's easy to hack the game, and patent can't be protected.
Are there any good ways to avoid this, e.g Javascript can be compiled to binary file then browser load and run the compiled javascript?