title: partial view does not recognize a function in a js class
body: <p>I have a class for creating chart in js, I added the source in my main view and used it. In the main view I add sources like this:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script src="@Url.Content("~/Scripts/KndoTst/jquery.min.js")"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/KndoTst/kendo.all.min.js")"&gt;&lt;/script&gt; 
  &lt;script src="@Url.Content("~/Scripts/CreateChart.js")"&gt;&lt;/script&gt;  
  </code></pre>
  
  <p>The function name is <code>createChart()</code> which is inside <code>createChart</code> class,it works everywhere in the main view when I call it,but in the partial view I need to call this function:</p>
  
  <pre class="lang-html prettyprint-override"><code>@model string 
  &lt;script src="@Url.Content("~/Scripts/KndoTst/jquery.min.js")"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/KndoTst/kendo.all.min.js")"&gt;&lt;/script&gt; 
  &lt;script src="@Url.Content("~/Scripts/CreateChart.js")"&gt;&lt;/script&gt;  
  
  &lt;script type="text/javascript"&gt;
    $("#btn1").click(function () {
    var dtDrpVals = new selectedDateDrpdnVal();   
    $.ajax({
      dataType: "json",
      type: "POST",
      url: "@Url.Action("reductionValues","Dashbrd")",
      contentType: "application/json; charset=utf-8",
      data: JSON.stringify({
        "regionalManager":dtDrpVals.drpValue,
        "dtFrom":dtDrpVals.fromDate,
        "dtTo":dtDrpVals.toDate}),
      success: function (result) {
        createChart(chartID, result);
      }});
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>When it reaches the line <code>createChart()</code>, it does not recognize kendo chart, but library is added up there!</p>