now using correct dom object in js api when swf is navigated to
directly.

Change-Id: I3f7ba3a2510a4eaaa5ffc93fe6d027f60d17213b