Removed deprecated event binding.
JSHint conformance.