use local jquery script
improve match update
complete match update logic