Text to be displayed on list item click

Hmmm, what does your app have to do with javascript (JS) ?

Sounds like you want an accordian type listview. This is possible in several ways, including the use of extensions.

See here for an example using multiple listviews

Show in your blocks how you have created your list