added .fail method to ajax call
Merge pull request #45 from hasgeek/button

added .fail method to ajax call