modified variant results.js; QueryResult fixes