extend = function(target, extension) {
        for (var key in extension) {
            target[key] = extension[key];
        }
    }
Node-friendly function to extend objects without depending on jQuery
       (which requires a browser-context)