added new test case & fixed IE8 event issue

event.preventDefault() does not work on IE8, added the correct method of
stopping events in IE8
Merge pull request #7 from epochcoder/master

added new test case & fixed IE8 event issue