Using external .js file with named function

I have taken the inline script used by the datatable and put it in an external .js file.

The .js file is being loaded. What I would like to know is how to reference the code which is placed in a named function as below:

var WeekView = {
    dataTable: function () {
...
Normal script code for the datatable
...
    }
};

Worked it out again!

HTML:

<div class="padView">
    <div id="dataTable"></div>
</div>

<script>
    var arrayOfArrays = 
    JSON.parse(@Html.Raw(Json.Encode(Model.GetWorkListJson())));
    dataTable.week(arrayOfArrays, '@Model.StartDate');

JavaScript:

var dataTable = {
    week: function datatableWeek(arrayOfArrays, startDate) {
...
Normal datatable JavaScript code
...
}
};