moving JS file
Breaking out DocumentQuery