Use $ passed to IIFE to avoid namespace collision

In `ayepromise.js`, `af` was passed to an IIFE but not used, so the global `$` gets used instead.  When including jQuery, this overwrites the jQuery Deferred implementation.