So instead of this:
It would look more like this:
And you can click inside the box to type in it, and a size grip would probably be mandatory so you could fit more text inside.
I would like to think that this would be useful, in like maybe a teaching setting so the teacher could teach a little JS without dumping the students in a full-on text language. Or it could be useful when you want to input just a tiny bit of JS commands without wanting to switch to text mode and back because the larger the program, the more time it takes to load the blocks when you go back.
Just a thought.