Use $ passed to IIFE to avoid namespace collision
Merge pull request #618 from gavinhungry/ayepromise-iife

Use $ passed to IIFE to avoid namespace collision