just do `function updateDetails(contact)`, no need to use the more verbose `var xxx = function()`