doesn't work in firefox due to no global event.
need to specify parameter `function(event) {`