I have following line of code inside my js function saved as separate js file
$('#Page').val(@Html.Raw(Json.Encode(Model.MyFormats));
on page loading inside firebug console I'm getting following error
SyntaxError: illegal character
with pointer to @ inside @Html.Raw...