using @Html.Raw in javascript function
<p>I have following line of code inside my js function saved as separate js file</p>

<pre><code> $('#Page').val(@Html.Raw(Json.Encode(Model.MyFormats));
</code></pre>

<p>on page loading inside firebug console I'm getting following error</p>

<blockquote>
  <p>SyntaxError: illegal character</p>
</blockquote>

<p>with pointer to <code>@</code> inside <code>@Html.Raw...</code></p>