you can use the wonderful API `dom.message.classList.toggle('lock', value)`

(wonderful, because I implemented it ;) )