Possible Duplicate:
how to prevent your javascripts being stolen,copied, and viewed ?
What is the best way to secure the javascript code & make it hard to understand it and for sure steal it… I know that its impossible to secure it 100% since its client side and all the code the client can see it.. But I need to make it as hard as possible…
All you can do is minify and obfuscate it.
Here is a free obfuscator, there are several around.