Fixed #13 but breaks middle-mouse button for IE8 (accepted bug)