Added an Immediately Invoked Function Expression to make sure that $ was an alias for jQuery when this library is used in contexts where the global $ might have been changed.