how to compare two values in jquery