I’m not sure this makes the code more readable (I think readability is worth a few additional lines of code), but I don’t have any strong opinion about that. I’ll leave it to the System reviewer.

In any case, as you introduce these `framed`|`no-frame` strings both in the JS and CSS code, please use more consistent names (e.g. `framed` and `unframed`).