javascript performance: chapter4 branch