remove debug messages
convert query.js to ls