[screenshot-basic question] How to do this with avoiding JavaScript

Have a look at this:

It does exactly what you want it to do. Further, you can call it’s exports from lua pretty easily to make your own commands/functions.