Allow non-editable resource tree.

Modifies the javascript so it can render a non-editable tree.