was crashing on my chrome with atr instead fo setAtribute