Your function doesn't accept an `event` parameter, so normally this line would throw an error that the variable is not defined -- and in fact it does so, in Firefox. For some reason it still works in Chrome, which may be doing some "magic" to make `event` always accessible.