I'm not very familiar with the object structure, here is my code that doesn't work:

```javascript
OC.Contacts = OC.Contacts || {};


(function(window, $, OC) {
	'use strict';
	
	var Dialog = function(storage, addressbook) {
		this.storage = storage;
		this.addressbook = addressbook;
	}

	Dialog.prototype.openAddressbookUi = function() {
```

and in addressbook.js, I use 
```javascript
var dialog = OC.Contacts.Dialog(null, null);
```
which doesn't exists...

Can you help me with the structure of the new object ?