Update contacts.js

fixing bug when deleting two contacts in a row