A shortlist function for WordPress using Ajax