Attribute changed old-javascript