function createScripts( dir, nFiles ) {
	var content;
	var fpath;
	var files;
	var i;

	files = new Array( nFiles );
	for ( i = 0; i < nFiles; i++ ) {
		content = template( i.toString() );
		fpath = path.join( dir, i+'.js' );
		writeFileSync( fpath, content, {
			'encoding': 'utf8'
		});
		files[ i ] = fpath;
	}
	return files;
}
Creates temporary scripts.

@private
@param {string} dir - destination directory
@param {NonNegativeInteger} nFiles - number of scripts to create
@returns {StringArray} array of script file paths