Fix xqlint  & jshint warnings

byid is not present in the new version. Is this intended?