Set Css Attribute Javascript For Loop