move result template from js var into html block
respond to queries in url to work with js disabled