Updated Configurator#finalize() to return a JavaScript parser if JavaScript is enabled