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