Just like in a regular web app, where you can inspect JavaScript via the browser developer tools, the nature of the language is that is it uncompiled code that is interpreted at run time. Even if there were a way of having a kind of execute only permission on a library file, you could still get at the code through the library namespace using simple JavaScript techniques, since the library code becomes part of your project.
There are tools that make code difficult to ready.. Such as uglify, and minify so you could run that on your code.
My view though is that If you are sharing code with others, you should get comfortable with letting them see it too.
Btw, this forum has been migrated to the desktop liberation community on g+ a couple of years ago, so I don't often notice posts here..
Sent from my iPad