Consider the following example:

```
var ExampleFunction = function(param1, param2) {
   this.helloWorld = function() {
       console.log('hello world' + param1 + param2);
   }
}

```

When I do something like:

```
require(['https://path/to/example_function.js'], function(exampleFunction){
    console.log(exampleFunction);
});

```

I see:

```
define( function() { return function(param1, param2) {
    this.helloWorld = function() {
       console.log('hello world' + param1 + param2);
    }
} } );

```

How do I inject the dependencies of this function? I cannot seem to instantiate the function my self inject them via the call.

Also when loaded locally I can do:

`var exampleFunction = new ExampleFunction(someParam, someOtherParam);`

But when loaded rom the server I cannot.

**Ideas?**