Python Dynamically Add Attribute Using Javascript Innerhtml New Line