Contact – Front end implementation

Implemented some of the front end implementation for the contact fields
in Javascript. Server-side stuff to follow.