fixed data attribute usage firing before dom was loaded