combine redundant ajax requests