If you are talking about securing your Front-End code the answer is as follows.
Concat and Minify all your Javascript and CSS files into a single file. It not only secure your code it will also make improve the performance of your application to some extent.