Thank you for the answer! I'm trying this solution using the code found here.
But, the name check does not seem to work.
if ( bkm.name == bkmName ) return bkm;
Always returns false. I've tried a couple of things, but it seems the String compare does not work as expected. I've logged the 2 comparing strings to the console and they do match.
Any ideas what's wrong?