JavaScript error: Uncaught TypeError: Cannot read property 'left' of undefined
<p>This is a really annoying error and there seems to be various questions about this console error. It doesn't give me a whole lot to work with in the console using chrome.</p>

<pre><code> /**
     * Dropdown menu positioning
     */
    loc.dropMenuPositioning = function (){
        var dropMenu = $('.js-dropdown-item-wrap');
        var mainNavigationOffset = $('.js-nav-container &gt; ul').offset();
        var mainNavigationPosition = mainNavigationOffset.left;
        dropMenu.css({'left' : mainNavigationPosition - 60});
    };
</code></pre>

<p>Sorry, i don't have much more to go with on this question. Any help would be greatly appreciated. Thank you.</p>