js: Find puppet with id=name as failsafe