Unwrapped Ply.ajax from its wrapper function