Updated searchfield javascript.