I don't quite understand why you need an IIFE here, I would get rid of it as it serves no purpose