title: Secure dynamic Javascript in CSHTML file
body: <p>I am new to MVC platform and developing one business application in which I am using some JavaScript Excel Library. From Controller action, I pass my MODEL to view and then in View, I fill up my custom Excel Library by setting up business formulas &amp; values from Model.</p>
  
  <p>As my JavaScript code is purely dependent on MODEL (i.e. Server data) so I guess, I don't have choice except to write JavaScript code in my view (cshtml) file. As in separate JS file, my model will not available. But this approach have severe security risk that any one can easily find-out my business formula in JavaScript after viewing View Source of the page. </p>
  
  <p>I notice there is "Bundling &amp; Minifying" option in MVC5 but I could not find that how can I include this dynamic JavaScript code in it (as a String???). So please need an EXPERT opinion that with which best approach I can secure (as much as possible) my Javascript code? I know it can't be completely secure but atleast make it harder to understand as much as possible.</p>
  
  <p>Thanks,</p>