title: Why js not working in cordova?
body: <p>I'm trying to run this code in browser and in emulator, but js is not working.
  In emulator sidebar does not open while in browser sidebar always opens.</p>
  
  <p>How to fix this issue?</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"&gt;
      &lt;meta name="format-detection" content="telephone=no"&gt;
      &lt;meta name="msapplication-tap-highlight" content="no"&gt;
      &lt;meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.5.min.css"&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/materialize.min.css"&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/material-design-iconic-font.min.css"&gt;
      &lt;title&gt;App&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div data-role="page" id="page1"&gt;
    &lt;nav class="blue lighten-1"&gt;
      &lt;ul id="slide-out" class="side-nav fixed"&gt;
          &lt;li class="bold"&gt;&lt;a href="#!" class="waves-effect waves"&gt;First Sidebar Link&lt;/a&gt;&lt;/li&gt;
          &lt;li class="bold"&gt;&lt;a href="#!" class="waves-effect waves"&gt;Second Sidebar Link&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;a href="#" data-activates="slide-out" class="button-collapse"&gt;&lt;i class="zmdi zmdi-menu"&gt;&lt;/i&gt;&lt;/a&gt;
    &lt;/nav&gt;
    &lt;/div&gt;
    &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="js/materialize.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="js/jquery.mobile-1.4.5.min.js"&gt;&lt;/script&gt;
    &lt;script&gt;
     $(document).ready(function(){
       $('.button-collapse').sideNav();
      });
    &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>