MDL-43262 JavaScript: Correct width attribute override

This should be done using an attribute modification, rather than at the
constructor level.
MDL-43262 JavaScript: Correct visible attribute override

This should be done using an attribute modification, rather than at the
constructor level.
MDL-43262 JavaScript: Correct use of centered attribute override

This should be done using an attribute modification, rather than at the
constructor level.
MDL-43598 dialogue: fixed bug with render procedure