function extend(a, b) {
        for (var i in b) {
            if (b.hasOwnProperty(i)) {
                a[i] = b[i];
            }
        }
        return a;
    }
function extend(a, b) {
        for (var i in b) {
            if (b.hasOwnProperty(i)) {
                a[i] = b[i];
            }
        }
        return a;
    }
function extend ( a , b ) { for ( var i in b ) { if ( b . hasOwnProperty ( i ) ) { a [ i ] = b [ i ] ; } } return a ; }
**********************************
Helpers
**********************************
********************************** Helpers **********************************