update jsquery and conditions quering