Loop objects

        for(var key in fields){
            var field = fields[key];

            var value = data[key];
            if(typeof value == 'undefined' || value == null || value == '0'){
                value = '';
            }

            $modal.find('.' + key).html(value);
        }