Common code for ajax call

Changed the code for having common functionality for ajax call
Merge branch 'master' of https://github.com/NikhileshKshirsagar/AppraisalSystem