I have 2 frames in one page like this (home.html)
You need to supply a reference to the frame you what to access:
$("some selector", top.frames["treeStatus"]))