u can do in this way. just include this
I got it
Remember that this will not prevent people gaining access to the .js file if they want to. Your original page will detail the location of the .js file that can be loaded as a text file.