title: IBM Worklight 6.1 - Uncaught ReferenceErrors: WLJQ is not defined, WL is not defined
body: <p>I'm using IBM Worklight Developer Edition 6.1 installed in Eclipse Juno as my IDE and backbonejs as my main javascript framework for my project.</p>
  
  <p><strong>My index.html</strong></p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;!--[if lt IE 7]&gt; &lt;html class="no-js ie6 oldie" lang="en"&gt; &lt;![endif]--&gt;
  &lt;!--[if IE 7]&gt;    &lt;html class="no-js ie7 oldie" lang="en"&gt; &lt;![endif]--&gt;
  &lt;!--[if IE 8]&gt;    &lt;html class="no-js ie8 oldie" lang="en"&gt; &lt;![endif]--&gt;
  &lt;!--[if gt IE 8]&gt;&lt;!--&gt; &lt;html class="no-js" lang="en"&gt; &lt;!--&lt;![endif]--&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt;
  
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"&gt;
      &lt;script&gt;window.$ = window.jQuery = WLJQ;&lt;/script&gt;
  
      &lt;script data-main="js/main" src="js/libs/require/require.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>My main.js</strong></p>
  
  <pre><code>require.config({
      paths: {
          jquery: 'libs/jquery/jquery-min',
          underscore: 'libs/underscore/underscore-min',
          backbone: 'libs/backbone/backbone-min',
          templates: '../templates',
          bootstrap: 'bootstrap.min',
          initOptions: 'initOptions',
          biiRibMobile: 'biiRibMobile',
          messages: 'messages'
      },
  });
  require(['app', ], function(App) {
      App.initialize();
  });
  </code></pre>
  
  <p><strong>My app.js</strong></p>
  
  <pre><code>// Filename: app.js
  define(['jquery', 'underscore', 'backbone', 'router', // Request router.js
  'bootstrap', 'initOptions', 'biiRibMobile', 'messages', ], function($, _, Backbone, Router, bootstrap, initOptions, biiRibMobile, messages) {
      var initialize = function() {
              // Pass in our Router module and call it's initialize function
              Router.initialize();
          };
      return {
          initialize: initialize
      };
  });
  </code></pre>
  
  <p><strong>My initOptions.js</strong></p>
  
  <pre><code>var wlInitOptions = {
  
      logger : {enabled: true, level: 'debug', stringify: true, pretty: false,
          tag: {level: false, pkg: true}, whitelist: [], blacklist: []},
  
      analytics : {
          enabled: false
          //url : ''
      }
  
  };
  
  if (window.addEventListener) {
      window.addEventListener('load', function() { WL.Client.init(wlInitOptions); }, false);
  } else if (window.attachEvent) {
      window.attachEvent('onload',  function() { WL.Client.init(wlInitOptions); });
  }
  </code></pre>
  
  <p>Thanks a lot in advance.</p>