Handle no hit found
Refactor handleInput
Case insensitive
Fix host retrieval for older browsers