Dear all

I have this web application that has an applet and buch of java scripts. They all have the core functionality of the project. When i have the stuff on the web i can secure the content by configuring the server. But few clients would like the product on a cd. That is a problem for the security of my code because they can see it and reuse it. Is there any way to protect the code (applet and javascript) so the customer can use it but not be able to view it? Something like encryption? Any advice on that matter?