add support of CORS. show query in text input when onhashchange happens.