disallow empty query
added some user stuff that doesn't do anything. wanked around with whitespace and jshint for a while