Add query function (with underscore.js)