MDL-68409 js: Add setButtonText modal helper