attempt to separate ajax jquery functions from animations