prototype with jqxtree as a directive