ajax and async calls: removed "?" when there is no query