How do I access something in its own object?
<p>If I wanted to access a value within itself (an object), how would I go about doing so?</p>

<p>Here's what I have (simplified):</p>

<pre><code>options = {
    'image' : {
        'height' : {
        'upper' : 100,
        'lower' : 25
        },
        'width'  : {
        'upper' : 100,
        'lower' : 25
        },
    'dimensions' : (Math.floor(Math.random() * (options.image.height.upper - options.image.height.lower) + options.image.height.lower)) + 'x' +                                                         (Math.floor(Math.random() * (options.image.width.upper - options.image.width.lower) + options.image.width.lower())),
        'color' : 'fff'
};
</code></pre>

<p>If you look at options.dimensions, I'm attempting to access the values in height and width, yet I believe my scope is wrong.</p>

<p>Is there a way to access what I need the way I'm doing it? If not, what's a better way to go about this?</p>

<p>Thanks :)</p>
