@foxdonut @victornoel just to go back on the topic of globals. Just to be clear, as Fred pointed out, SAM only requires one global variable. All the actions are then "mounted" onto that variable. The variable itself could be a parameter passed to the SAM instance during instantiation. I don't want to use "addEventListener" because I feel that's much worse having to mount manually all event handlers. Is that what you would prefer?