For anyone interested, you can find Chris Powers "7 Steps to Better Javascript" article and code here. If you clone the git repository, check out the numbered Javascript files, which shows what the code looks like after the given refactoring.