Updates to work with FF, can not use e.srcElement, use e.target instead, also can not use  window.event.