Python Dynamically Add Attribute Javascript W3schools