title: ReferenceError: Parse is not defined
body: <p>I get this error with a Parse.com JS App:</p>
  
  <blockquote>
    <p>ReferenceError: Parse is not defined.</p>
  </blockquote>
  
  <p>I really don't know why. Everything looks good to me. The files are linked correctly; I've checked this a few times. Is it not true, that I have to put my own JS right below Parse and it should work? This is what I've read here: <a href="https://github.com/ParsePlatform/AnyYolk/blob/master/index.html" rel="nofollow">Github Project</a>
  I use Chrome with the ripple extension. I serve the app via <code>cordova serve</code></p>
  
  <p>Any help much appreciated! </p>
  
  <p>Here is index.html: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&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, target-densitydpi=device-dpi" /&gt;
      &lt;link rel="stylesheet" type="text/css" href="../css/index.css" /&gt;
      &lt;link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css" /&gt;
      &lt;title&gt;Zone&lt;/title&gt;
      &lt;meta name="apple-mobile-web-app-capable" content="yes"&gt;
      &lt;meta name="apple-mobile-web-app-status-bar-style" content="black"&gt;
      &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="http://www.parsecdn.com/js/parse-latest.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="../js/main.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;img src="../img/site-logo.png" rel="external" class="logo"&gt;
      &lt;!-- &lt;div class="site-menu"&gt;
          &lt;i class="fa fa-angle-double-left"&gt;&lt;/i&gt;&lt;p class="title"&gt;&lt;/p&gt;&lt;i&gt;&lt;/i&gt;
      &lt;/div&gt; --&gt;
      &lt;a href="#"&gt;&lt;img src="img/suche.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/essentrinken.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/einkaufen.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/kultur.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/dienstleistungen.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/nuetzlich.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/nummern.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/sport.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/verwaltung.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/hotel.jpg" class="icon"&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="img/neuzuzuger.jpg" class="icon"&gt;&lt;/a&gt;
  
      &lt;div class="adad"&gt;&lt;/div&gt;
  
      &lt;script type="text/javascript" src="../cordova.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="../js/index.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          app.initialize();
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And here the JS file. </p>
  
  <pre><code>$(document).ready(function () {
      Parse.initialize("", "");
  
      var Ad = Parse.Object.extend("Ads");
      function getPosts() {
          var query = new Parse.Query(Ad);
          query.find({
              success: function (results) {
                  console.log("hello");
                  var output = "";
  
                  for (var i in results) {
                      var name = results[i].get("location");
  
                      if (name == 10) {
                          output += "&lt;img src = '" + imageurl + "' class='media-object' height='60' width='100'&gt;"
                      }
                  }
  
                  $("#adad").html(output);
                  console.log(output);
              },
              error: function (error) {
                  console.log("Query error:" + error.message);
              }
          });
      }
      getPosts();
  });
  </code></pre>