Improve vanilla JS $live: variable names, unnecessary if

The expression in the if statement in `globalEventDispatcher` is always true. This removes it and renames `globalEventDispatcher` to `dispatchEvent` (functions should have verbs as names).