implement generation of search-query
implement java-script