Update details.js to have a function to handle the hiding of fields when they do not have a value, this is a cleaner way to handle it.