added JS methods to identify persistent and temporary directories.
Tried using the getParent() method to go to the app root directory. But that doesn't work.
Tried using the getDirectory("../Library") to go to the Library directory. It worked. I have displayed a list of files and folders inside that directory.