removed underscore script tag and added back getTargetDirFiles function