added jshint tweaks
added query support to fetch