Looking forward into a future of endless small software pieces embedded all over it is clear that javascript is most likely the only programming language that can deliver the promise of writing once and running everywhere. As of 2013 JavaScript is most likely the new Java!
The Visitor Design Pattern
The visitor design pattern allows us to add operations to objects that already exist without modifying their classes and without extending them.