Removed instance of the deprecated .error() method
Switched the .on() to .bind() to support both newer and older versions of jQuery
Merge pull request #297 from LaurentGoderre/master

Removed instance of the deprecated .error() method