nl_tokens: convert the given array to an object use the uid field of each item as the key
pl_tokens: function convertToObject ( itemArr ) { var obj = { } ; _ . each ( itemArr , function ( <mask> ) { obj [ item . uid ] = item ; } ) ; return obj ; }