fix bug: JS exception determining self-containment of unknown formats