Added Script Variable

Changed if ($(this).attr('data-target')) to if
(dataID), because variable already existed. Feedback from @KeithTri