Fix js selector while typing