function browserScript( files ) {
	var opath;
	var fpath;
	var tmp1;
	var tmp2;
	var str;
	var i;

	debug( 'Generating browser script...' );
	str = '';
	str += licenseHeader( SPDX, 'js', {
		'year': YEAR,
		'copyright': COPYRIGHT
	});
	str += '\n';

	str += '// This file is generated using `scripts/build.js`.\n\n';
	str += '\'use strict\';\n';
	str += '\n';
	str += '// MODULES //\n';
	str += '\n';
	tmp1 = [];
	tmp2 = [];
	for ( i = 0; i < files.length; i++ ) {
		fpath = './../data/'+files[ i ]; // relative path
		tmp1.push( 'var db'+i+' = require( \''+fpath+'\' );' );
		tmp2.push( 'db'+i );
	}
	str += tmp1.join( '\n' );
	str += '\n';
	str += '\n';
	str += '\n';
	str += '// MAIN //\n';
	str += '\n';
	str += 'var db = [\n\t';
	str += tmp2.join( ',\n\t' ) + '\n';
	str += '];\n';
	str += '\n';
	str += '\n';
	str += '// EXPORTS //\n';
	str += '\n';
	str += 'module.exports = db;\n';

	opath = join( __dirname, '..', 'lib', 'browser_db.js' );
	debug( 'Writing script to file: %s', opath );
	writeFileFcn( opath, str, OPTS, onWriteScript );

	debug( 'Generating browser file list...' );
	str = '';
	str += licenseHeader( SPDX, 'js', {
		'year': YEAR,
		'copyright': COPYRIGHT
	});
	str += '\n';

	str += '// This file is generated using `scripts/build.js`.\n\n';
	str += '\'use strict\';\n';
	str += '\n';
	str += '// MAIN //\n';
	str += '\n';
	tmp1 = JSON.stringify( files, null, 2 );
	tmp1 = tmp1.replace( /"/g, '\'' );
	tmp1 = tmp1.replace( / {2}/g, '\t' );
	str += 'var files = ' + tmp1 + ';\n';
	str += '\n';
	str += '\n';
	str += '// EXPORTS //\n';
	str += '\n';
	str += 'module.exports = files;\n';
	opath = join( __dirname, '..', 'lib', 'browser_file_list.js' );
	debug( 'Writing file list to file: %s' );
	writeFileFcn( opath, str, OPTS, onWriteList );
}
Generates a browser script.

@private
@param {StringArray} files - data files