search javascript diupdate