js: add contact, update contact list, toggle contact info