Why not simply do the comparison client-side?