using the code above you can test a difference in behavior in dev and production.
given the assets in attachment (unzip in your ressources dir), in development you will get a list of js files in the console.
In production you will get an empty list.
This is normal as the js are compiled and not really there. My question is could we get a behavior as with Titanium.Filesystem.File.exists which works on compiled js files (as shown is KitchenSink).