code: function getFiles(packageName,files,bundledFile){
  	    	if(!traversed_bundles[packageName]){
  	    		traversed_bundles[packageName] = true;
  	    		var bundle = resourcesJs.bundles[packageName];
  	    		if(bundle){
  		    		bundle.bundled = bundledFile;
  	    			for(var i in bundle.on){
  	    				files = getFiles(bundle.on[i],files);
  	    			}
  	    			for(var i in bundle.js){
  	    				var file = dir+ "/" + bundle.js[i];
  	    				if(!traversed_files[file]){
  	    					files.push(file);
  	    					traversed_files[file] = true;
  	    				}
  	    			}
  	    		}
  	    	}
  	    	return files;
  	    }
docs: Description
  @method getFiles
  @param {} packageName
  @param {} files
  @param {} bundledFile
  @return files