make empty query more robust returning entire sourceJSON
not perfect but working script template and then saved example for gh-pages