Change envelope styles and add JS for editing.