fix event query support in jsapi model
Merge pull request #4 from jtuulos/master

fix event query support when using JavaScript API