Update README.md
Fixing issue #1084 : Added error event handler
Merge
Fixing issue #1084 - fixing jshint errors
Merge pull request #1085 from prateekmr/master

Fixing issue #1084 : Added error event handler