title: error in loader: JSON Parse error: Invalid number located in jquery
body: <p>I am having trouble getting a page to load because the js loader is being effected by an error in query JSON parse.</p>
  
  <p>This is the error in noted by Safari.</p>
  
  <pre><code>    error in loader: JSON Parse error: Invalid number at line 2618:       http://localhost:8888/iicode/jquery-1.11.2.min.js
  </code></pre>
  
  <p>here is a snippet of the code at line 2618, which has the asterix.</p>
  
  <pre><code>     var vc = m.now(), wc = /\?/, xc = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
  m.parseJSON = function(b) {
      if (a.JSON &amp;&amp; a.JSON.parse)
          **return a.JSON.parse(b + "");**
      var c, d = null, e = m.trim(b + "");
      return e&amp;&amp;!m.trim(e.replace(xc, function(a, b, e, f) {
          return c &amp;&amp; b &amp;&amp; (d = 0), 0 === d ? a : (c = e || b, d+=!f-!e, "")
      })) ? Function("return " + e)() : m.error("Invalid JSON: " + b)
  }, m.parseXML = function(b) {
      var c, d;
      if (!b || "string" != typeof b)
          return null;
      try {
          a.DOMParser ? (d = new DOMParser, c = d.parseFromString(b, "text/xml")) : (c = new ActiveXObject("Microsoft.XMLDOM"), c.async = "false", c.loadXML(b))
      } catch (e) {
          c = void 0
      }
      return c &amp;&amp; c.documentElement&amp;&amp;!c.getElementsByTagName("parsererror").length || m.error("Invalid XML: " + b), c
  };
  </code></pre>
  
  <p>Here is the the first few lines of the js loader that the error is disabling, and I have no idea why. Safari highlighted the part that I asterix.</p>
  
  <pre><code>    (function(window, jQuery) {
  var namespace = 'de.kubikfoto', engine = null, args = {}, jsonFiles = {}, xmlFiles = {}, filesToLoad = 1, oldloadXML = null, oldloadJSON = null;
  function logerror(errortext) {
      if (typeof console === "object" &amp;&amp; typeof console.error === "function") {
          **console.error("error in loader: " + errortext)**
      }
  }
  </code></pre>
  
  <p>Any help would be appreciated my website is currently at a standstill.</p>
  
  <p>As some have noted a potential problem with the Ajax, here is the call.</p>
  
  <pre><code>    the ajax call I found was this :   v[d](k[d]);
          if (i = Mc(Ic, k, b, v)) {
              v.readyState = 1, h &amp;&amp; n.trigger("ajaxSend", [v, k]), k.async &amp;&amp; k.timeout &gt; 0 &amp;&amp; (g = setTimeout(function() {
                  v.abort("timeout")
              }, k.timeout));
              try {
                  t = 1, i.send(r, x)
              } catch (w) {
                  if (!(2 &gt; t))
                      throw w;
                  x( - 1, w)
              }
          } else 
              x( - 1, "No Transport");
          function x(a, b, c, d) {
              var j, r, s, u, w, x = b;
              2 !== t &amp;&amp; (t = 2, g &amp;&amp; clearTimeout(g), i = void 0, f = d || "", v.readyState = a &gt; 0 ? 4 : 0, j = a &gt;= 200 &amp;&amp; 300 &gt; a || 304 === a, c &amp;&amp; (u = Oc(k, v, c)), u = Pc(k, u, v, j), j ? (k.ifModified &amp;&amp; (w = v.getResponseHeader("Last-Modified"), w &amp;&amp; (m.lastModified[e] = w), w = v.getResponseHeader("etag"), w &amp;&amp; (m.etag[e] = w)), 204 === a || "HEAD" === k.type ? x = "nocontent" : 304 === a ? x = "notmodified" : (x = u.state, r = u.data, s = u.error, j=!s)) : (s = x, (a ||!x) &amp;&amp; (x = "error", 0 &gt; a &amp;&amp; (a = 0))), v.status = a, v.statusText = (b || x) + "", j ? o.resolveWith(l, [r, x, v]) : o.rejectWith(l, [v, x, s]), v.statusCode(q), q = void 0, h &amp;&amp; n.trigger(j ? "ajaxSuccess" : "ajaxError", [v, k, j ? r: s]), p.fireWith(l, [v, x]), h &amp;&amp; (n.trigger("ajaxComplete", [v, k]), --m.active || m.event.trigger("ajaxStop")))
          }
  </code></pre>