small feature for adding special function in reps ponse if arg is tree=1 then call customised javascript function, good for custom TreeWidget