attempt at fixing missing Javascript engine error