Example of multiple callbacks being used in an ajax call