# Structuring large app with many ux and js files

**URL:** <https://forums.fusetools.com/t/structuring-large-app-with-many-ux-and-js-files/2254>\
**Category:** How-to Discussions\
**Created:** [May 4, 2016, 1:04am UTC](https://forums.fusetools.com/t/structuring-large-app-with-many-ux-and-js-files/2254 "2016-05-04T01:04:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aubrey](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@aubrey](https://forums.fusetools.com/u/aubrey)\
**Post date:** [May 4, 2016, 1:04am UTC](https://forums.fusetools.com/t/structuring-large-app-with-many-ux-and-js-files/2254/1 "2016-05-04T01:04:32Z")

</div>

I’m trying to find the best way to structure a large app into a set of js files and a set of ux files. I need a way to import/include these files into the main ux file. I’ve gone through most of the Fuse learning stuff and cannot figure out how properly consume these files. What’s wrong with the following:

```auto
<JavaScript File="utilities.js" ux:Global="MyModule" />
<JavaScript>
    var myModule = require("MyModule");
</JavaScript>

```

then

```auto
<Button Text="Heita" Clicked="{myModule.print}"/>

```

the js file:

```auto
var Observable = require('FuseJS/Observable');
module.exports = {

    function print() {
        debug_log("Printing from js file");
    }
};

```

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![Gaetan](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/gaetan/32/342_2.png) [@Gaetan](https://forums.fusetools.com/u/Gaetan)\
**Post date:** [May 4, 2016, 8:09am UTC](https://forums.fusetools.com/t/structuring-large-app-with-many-ux-and-js-files/2254/2 "2016-05-04T08:09:40Z")

</div>

You should look at the **[Navigation](https://www.fusetools.com/learn/fuse#navigation)** section in the doc.

---

<div class="post-metadata">

**Author:** ![Anders\_Schau\_Knatten](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_schau_knatten/32/41_2.png) [@Anders\_Schau\_Knatten](https://forums.fusetools.com/u/Anders_Schau_Knatten)\
**Post date:** [May 9, 2016, 1:43pm UTC](https://forums.fusetools.com/t/structuring-large-app-with-many-ux-and-js-files/2254/3 "2016-05-09T13:43:58Z")

</div>

Hi,

A new version of Fuse is nearly ready to be released, which will improve this aspect a lot. If you keep an eye on the [pre-release-testing](https://fusecommunity.slack.com/messages/pre-release-testing/) channel on our community Slack, you’ll be the first to hear about it! 🙂
