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
...
}
};