diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js
index a708352cba07d760c6b3adbcb43912d8ed0d6051..2521a6ce84354133e6f8578a4a0eb2a105f71697 100644
--- a/apps/contacts/js/contacts.js
+++ b/apps/contacts/js/contacts.js
@@ -1499,6 +1499,20 @@ OC.Contacts={
 			//this.contacts[id] = contact;
 			return contact;
 		},
+		addAddressbook:function(name, description, cb) {
+			$.post(OC.filePath('contacts', 'ajax/addressbook', 'add.php'), { name: name, description: description, active: true },
+				function(jsondata) {
+				if(jsondata.status == 'success'){
+					if(cb && typeof cb == 'function') {
+						console.log('addressbook:', jsondata.data.addressbook);
+						cb(jsondata.data.addressbook);
+					}
+				} else {
+					OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
+					return false;
+				}
+			});
+		},
 		doImport:function(file, aid){
 			$.post(OC.filePath('contacts', '', 'import.php'), { id: aid, file: file, fstype: 'OC_FilesystemView' },
 				function(jsondata){