Checking Added Attributes with setAttribute: JavaScript Example