Updated keytag.js with query functions and query server