Silence JSHint.
Remove unused variables.
Call event handlers in the object context by default.
Reorder functions.