fix jquery equality check