Above in the JSDoc you specify that documents is an object so this will probably never the the same as ID?