Completed Ajax error handling and master error file