Make javascript unobtrusive
<p>We all work hard when it comes to javascript and unfortunately there is no way to just hide the js in the browsers, but nevertheless we don't want other people to immediately be able to copy what we have accomplished in hours of work. When I look at Facebook script tags, its just a spaghetti-load of single letter variables and functions that no one could decipher in a jiffy. Is there something like a program of script that just "anonymizes" / "deciphers" / "encodes" my js so noone can really immediately see whats going on?</p>

<p>Example (be it far from perfect and full of errors):</p>

<pre><code>function convertTimeToString(time) {
   var seconds = 0;
   var minutes = 0;
   if(time % 60 &gt;= 10) {
       seconds = time % 60;
   else {
       seconds = "0" + time % 60;
   }
   minutes = Math.floor(time/60);
   return minutes + ":" + seconds;
}
</code></pre>

<p>becomes something like this</p>

<pre><code>function s(t){var a=0;var b=0;if(t%60&gt;=10){a=t%60;}else{a="0"+t%60;}b=Math.floor(t%60);return b+":"+a;}
</code></pre>

<p>I guess you see the difference, it would take a good js coder a bit more time to make sense out of what this script is actually doing. Any ideas how to do it automatically?</p>
