<!doctype html>
<html lang="en">
	<head>
		<title>JavaScript Patterns</title>
		<meta charset="utf-8">
	</head>
	<body>
		<script>
		/*!
		 * jQuery custom-events plugin boilerplate
		 * Author: DevPatch
		 * Further changes: @addyosmani
		 * Licensed under the MIT license
		 */

		// In this pattern, we use jQuery's custom events to add
		// pub/sub (publish/subscribe) capabilities to widgets.
		// Each widget would publish certain events and subscribe
		// to others. This approach effectively helps to dec