Added jquery locally; added $.goodtree('setFocus', obj); and it's equivalent config $.goodtree({'setFocus': obj});