Wrapping JavaScript in self-invoking anonymous function 

Wrapping JavaScript in self-invoking anonymous function to make it compatible with other JavaScript libraries that use the $ variable.