Removed js files from gitignore
Added more comment documentation to query function
Added qopts.shouldPoll