I know all functions are based on dom[] array. The reason to use buttons as arguments is for decoupling of those files. In FF/RWD file, we don't need to know which button we use. We just need to a DOM element. That's why I don't like global functions.