toTitleCase = function toTitleCase(str) {
            return str.replace(/(?:^|\s)\w/g, function(match) {
                return match.toUpperCase();
            });
        }
class DomRenderer < Renderer

Physics.renderer('dom')

Renderer that manipulates DOM elements according to the physics simulation. Very primative...