adding a snapshot of the query_input js-lib (from corpus_shell), however this should be copied in on build.