title: SAPUI5 : JSONModel is not a constructor
body: <p>I have an SAPUI5 app with 2 views. When I try navigate from the first view to the second view with an router it throws this error:</p>
  
  <p>"Uncaught TypeError: JSONModel is not a constructor(…)"</p>
  
  <p>The problem is I have to consume the content of the JSON to fill a table and with this error it is still empty</p>
  
  <p>In a similar case/application my code runs without a problem, so I would be happy if someone can  read my code if there are some errors...</p>
  
  <p><em>Main.view.xml</em></p>
  
  <pre><code>&lt;mvc:View controllerName="App.controller.Main" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc"
  displayBlock="true" xmlns="sap.m"&gt;
  &lt;App&gt;
      &lt;pages&gt;
          &lt;Page&gt;
              &lt;content&gt;
                  &lt;Table id="paramTable" items="{/callbackData}" width="auto" class="sapUiResponsiveMargin"&gt;
                      &lt;columns&gt;
                          &lt;Column&gt;
                              &lt;Label text="Parameter"&gt;&lt;/Label&gt;
                          &lt;/Column&gt;
                          &lt;Column width="10%"&gt;
                              &lt;Label text="CurrentVal"&gt;&lt;/Label&gt;
                          &lt;/Column&gt;
                          &lt;Column width="10%"&gt;
                              &lt;Label text="TargetVal"&gt;&lt;/Label&gt;
                          &lt;/Column&gt;
                          &lt;Column width="30%"&gt;
                              &lt;Label text="Description"&gt;&lt;/Label&gt;
                          &lt;/Column&gt;
                      &lt;/columns&gt;
                      &lt;items&gt;
                          &lt;ColumnListItem&gt;
                              &lt;cells&gt;
                                  &lt;ObjectIdentifier title="{key}"&gt;&lt;/ObjectIdentifier&gt;
                              &lt;/cells&gt;
                              &lt;Text text="{currentVal}"&gt;&lt;/Text&gt;
                              &lt;Text text="{operator} {targetVal}"&gt;&lt;/Text&gt;
                          &lt;/ColumnListItem&gt;
                      &lt;/items&gt;
                  &lt;/Table&gt;
              &lt;/content&gt;
          &lt;/Page&gt;
      &lt;/pages&gt;
  &lt;/App&gt;
  </code></pre>
  
  <p></p>
  
  <p><em>Main.controller.js</em></p>
  
  <pre><code>sap.ui.define([
  "sap/ui/core/mvc/Controller",
  "sap/ui/model/json/JSONModel"
  ], function(Controller , JSONModel) {
  "use strict";
  
  return Controller.extend("App.controller.Main", {
  
      onInit : function() {
  
          this.getView().setModel(new JSONModel({
              callbackData: []
          }));
  
      },
  
      setTableData : function() {
          var here = this;
          $.ajax({
              url : '../../test.xsjs',
              type : "GET",
              success : function(data) {
                  here.getView().getModel().setProperty("/callbackData", data);
              }
          });
      }
  });
  });
  </code></pre>
  
  <p>Thanks in advance!!!</p>