Made getBracketInfo function for all the .ajax calls with a function callback