Do not use hard coded ids to get gadget instance, instead use dom tree
and traverse to parent gadget. This allos multiple gadget instances in
one page.