Wrapping entire plugin in self executing function, attaching plugin to window.