Use jQuery.inArray rather than indexOf in Forecast Spice.