For this type of input in custom extension event(actionScheme)
I get this result in the html:
dmx-on:click="avatar1.download('John',{"flip": true},'john',jpeg)"
So text types like seed and filename return correctly a formatted string, however the textarea and the droplist return unformatted strings(no single quote enclosing the values).