index.js
function( filename, autorun ) {
		var self = this;

		utils.readFile( filename, function( data ) {
			self.initCartridge( data );

			if ( typeof autorun === "function" ) {
				autorun();
			} else if ( autorun === true ) {
				self.run();
			}
		});
	}
function( filename, autorun ) {
		var self = this;

		utils.readFile( filename, function( data ) {
			self.initCartridge( data );

			if ( typeof autorun === "function" ) {
				autorun();
			} else if ( autorun === true ) {
				self.run();
			}
		});
	}
function ( filename , autorun ) { var self = this ; utils . readFile ( filename , function ( data ) { self . initCartridge ( data ) ; if ( typeof autorun === "function" ) { autorun ( ) ; } else if ( autorun === true ) { self . run ( ) ; } } ) ; }
Load a ROM and optionally run it.
@param {string} filename - Path of ROM to run.
@param autorun - If true, run ROM when loaded. If a function, call that function.
Load a ROM and optionally run it .