title: ($(window).width() > 768) NOT breaking at 768px
body: <p>The problem is that the breakpoint seems to be 783px and not at 768px like I specified in my if-statement.</p>
  
  <p>Since I use Bootstrap I need to provide some code based on Bootstraps breakpoints. I've tried innerWidth as well but it doesn't work. Media queries is not an option either since I need to use JavaScript to change the DOM. It has to be jQuery as well since that's what we use at the company I work for. See example code below:</p>
  
  <pre><code>if ($(window).width() &gt; 768) {
     $("#search").insertAfter(".search-webb");
     $("#pages").insertAfter(".page-webb");
  }else {
     $("#search").insertAfter(".search-mobile");
     $("#pages").insertAfter(".page-mobile");
  }
  </code></pre>