If you mean make it harder to read, you can search for "obfuscate javascript". If you're trying to encrypt some variable that's another story. What are you using it for?
There are solutions to make it difficult to read the code but they can't completely prevent your code being seen by the users.