Dialogue Tree Creation?

I would like to create a simple, Phoenix Wright-style game, and I was wondering: is there a simple way (that a n00b like me could understand) to create dialogue trees? I have a basic understanding of JavaScript, but that’s it.

the Unity Dialog Engine from mrdude could be a solid idea to invest into if you are after such a type of game

No, that’s too much; this is a very small project. Thanks anyways.

There’s a thread here that discusses dialogue trees. I think all the code posted is in JavaScript and there’s a fair bit of discussion too.