it's categoryId as parameter.
Add date to query events; fix jshint error