Update query-generator.js

Fixed issue where using un-escaped keys (extra assignment was causing it to fail)