Fixing a scoping issue with multiple `Modernizr.on()` callbacks for a single test