removed superfluous parameters from event functions
Added 'use strict'