Consistent style
Group relevant methods together
use params instead of global event object
Don't override global event variable