Move focusout code to contacts.js file