I have code which correctly creates buttons on the screen.
However, the statement b.setAttribute("backgroundColor", "red") crahes the application with the error
"The attribute backgroundColor does not belong to node Button", which is untrue since it can be defined in a style.
Similarly a button defined in a .per file can have "justify = center" which puts the text in the middle of the button. The facility appears to be unavailable as a style attribute.