
AppStarter = {

    initialize : function(pg) {
        // TODO do not use global initialPG variable but inject it in the require app
        window.initialPG = pg;

        this.loadRequireJS(
            "/assets/react-foaf/js/main",
            "/assets/react-foaf/js/lib/require.js",
            undefined
        )
    },

    loadRequireJS: function(dataMain,requireLib,callback) {
        var script = document.createElement('script');
        script.setAttribute("data-main", dataMain);
        script.src = requireLib;
        document.body.appendChild(script);
        if(callback) callback();
    }

}
@@ -160,16 +160,247 @@
  = pg;%0A%0A
+%0A        // TODO TODO TODO TODO TODO TODO TODO TODO TODO very important FIXME !!!%0A        // The app should never have to use an absolute path!%0A        // The app shouldn't need to know the hardcoded URL on which it is deployed!!!%0A
         
@@ -432,32 +432,37 @@
        %22/assets/
+apps/
 react-foaf/js/ma
@@ -487,16 +487,21 @@
 /assets/
+apps/
 react-fo

Fix AppStarter