The ajax search was not performing the snapshot search

The function to do this was commented previously for debugging the
issues with the loops and incorrect objects returning in the ajax. This
is now resolved and uncommented.