update modal js to account for all data attribute values

update modal javascript to account for data attribute values