Javscript object with shared name : So, I'm trying to create an object like:

    var a = {
    b:"object_id",
    b:function(){ return c(this.b); }
    }
    var c = {
    "object_id": {
    foo: "bar"
    }
    }

But it only registers the last value for the key 'b'. But I think I've seen something like this used before and it would really help me if I could call a.b().foo or if I just want ID a.b

Is there any way to make this happen or will I have to rename value and/or method?