I need to list all the files in the javascript such as \"ls\"??
AFAIK, you can not run any system command, this will violate the security model. You can do send a print command but I wonder anything beyond that is possible.