added jquery conditional to list index