Worst. Idea. Ever.
I am _not_ going to execute foreign webclient code on my system that needs to hide itself from my eye.
js on the web needs the opposite: More openness. Signed release tarballs, declared dependencies (so I need to download only once), declarative scope (only some features used) etc.