I belive i found a way to hide javascript from the client.. i use php.. page referral and sessions to restrict access, run the code and then run a fake code to clean the script file.
I've already done some tests and didn't found a way to view the javascript code.
if anyone want's to give it a try, i made a testpage just for that purpose: http://prtg.eu/lockedscript/testpage/
on the scriptfile i have a line that says:
Expand|Select|Wrap|Line Numbers
- // Here is the code you need to proof you where here --> ######