function removeEventListener (element, action, listener, useCapture) {
  if (element.removeEventListener) {
    if (useCapture === undefined) { useCapture = false }

    if (action === 'mousewheel' && isFirefox()) {
      action = 'DOMMouseScroll' // For Firefox
    }

    element.removeEventListener(action, listener, useCapture)
  } else if (element.detachEvent) {
    // Old IE browsers
    element.detachEvent('on' + action, listener)
  }
}
Remove an event listener from an element
@param {Element}  element   An html dom element
@param {string}   action    The name of the event, for example "mousedown"
@param {function} listener  The listener function
@param {boolean}  [useCapture]   false by default