Search logic in js. Placeholder and selection moved from Helpers-styl to here.