Fix xqlint  & jshint warnings

byid is missing in the new version, is this intended?