Datatable doesn't get initialized

Datatable doesn't get initialized

I'm currently building a MVC application with C#. I've used a Datatable in my user overview before, but when I want to use it in the detail page, in a partial view, it often doesn't load. Below I've copied the most important part of my DetailsGroup.cshtml file. While coding, I've basically copy/pasted from my working Overview page, but somehow it doesn't work.

  1.     @{
  2.     Layout = "~/Views/Shared/_LayoutWithoutNavBar.cshtml";
  3.     }

  4.     <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.5/css/jquery.dataTables.css" />
  5.     <html> 
  6.     ....
  7.     <table id="myGroups">
  8.     ....
  9.     </html>

  10.     @section scripts {
  11.     <!-- DataTables -->
  12.     <script type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.5/js/jquery.dataTables.js"></script>
  13.     <script type="text/javascript">
  14.         $(document).ready(function () {
  15.             //onderstaand lijntje is om een deftige dataTable te initialiseren
  16.             $('#myGroups').DataTable({
  17.                 "searching": false,
  18.                 "pageLength": 25
  19.             });
  20.         });

  21.     </script>
  22.     }

In my _LayoutWithoutNavBar.cshtml file I have the following bits of code:

  1.     <head>
  2.         ...
  3.         @Styles.Render("~/Content/bootstrap-theme.min.css")
  4.         @Styles.Render("~/Content/bootstrap.min.css")
  5.         @Scripts.Render("~/bundles/modernizr")


  6.     </head>
  7.     <body role="document">
  8.         <div id="mainBody" class="giveMeSomeSpace">
  9.             @Scripts.Render("~/bundles/jquery")
  10.             @Scripts.Render("~/bundles/jqueryui")
  11.             @Scripts.Render("~/bundles/jqueryval")

  12.             @RenderSection("scripts", required: false)

  13.             @Styles.Render("~/Content/themes/base/css")
  14.             @RenderBody()


  15.         </div>
  16.     </body>
  17.     </html>

In my main _Layout.cshtml file, which is also used in the Details page, I use the same scripts, described above. I don't know if a partial view can use those though, so I kinda copy/pasted to be sure. 

I almost forgot. When I run the app, I don't get an error, the table just gets sloppily loaded, no functionality or css. If I open F12 on Chrome, I see a red *Uncaught TypeError: undefined is not a function* If I click on that error, it sends me to the < head > tag of my main Details page

What possible causes could there be?