I put blocks which use jQuery in the body of one (and only one) cshtml file which uses the template and they causes error because jQuery is not loade
Just enclose it inside section scripts in .cshtml Page as shown.
section scripts
@section scripts{ }