String.prototype.title > r.capitalize . Just another small typo