Move docFetcher into query.js

Signed-off-by: Ian Macalinao <me@ian.pw>