Fixed onclick event for form for IE8

Updated event-handling to be also compatible with IE8
Merge pull request #58 from SimonSimCity/master

Fixed onclick event for form for IE8