Object Scope problem for multiple javascript files


Hello everyone,

I faced a problem for last few days.
I created a object in A file and that object i extended in B file.But it throws undefined always
When I run these browser it will work fine but my work space is throws undefined for that object.

How can I handle this?

Please help me out of this problem.