Added IIFE wrapper.

Added wrapper function to prevent $ from being overwritten by another
library as per jquery authoring doc.