I was unclear.

You have two practical options here. The most common way would be to pass in an unnamed anonymous function that contains ```mainMapInit```, which would look like:

```
$(document).ready(function() {
    var mainMapInit = function(map, options) {
        // stuff
    }
});
```

another would be 
```
var mainMapInit(map, options) {
    // stuff
}

$(document).ready(mainMapInit);
```

#1 is far more common.