Not sure you understood that.
I've been doing this for a while, after being sick of all those poor quality JavaScript frameworks and it works perfectly fine.
Usually the "main" JavaScript framework code is bloated, but kind of working, but as soon as you need some add-on or extension you are entering bug hell.
I'll just write the code in Scala, and have the assurance that it works without having to deal with unmaintained, bug-filled JavaScript libraries.