Refactoring a JavaScript class (opens in new tab)
This article, taken from the book JavaScript for Rails Developers, it is a refactors a piece of JavaScript into something that is (subjectively) better, meaning easier to read and quicker to understand at a glance.
Read the original article