This is part of &2074 (closed).
We want to get rid of IIFEs in spec/javascripts/u2f/mock_u2f_device.js.