Javascript Add Attribute