Examples of design patterns using JavaScript :D