I don't like the variable names above and below.  They are not "Doms": they're "Buttons" or "Elements".  And even though this is part of frames.js, I'm not sure that Frames is right here either.

How about fullscreenButtonIds and fullscreenButtons instead?