Update query.js

http://meta.stackexchange.com/questions/233684/database-query-result-links-should-open-in-new-window-tab-instead-of-the-same#233684