Slight change to the 'Search EOL' JS so that it catches empty input.