A CodePen by Nick Williams. JS module pattern demo - My current approach to the module pattern. A fully working widget that can be used multiple times on a page through a variety of means (raw object, jquery plugin, declaratively)