allow `isinstance` to be used in javascript mode,
note: it will not return the correct result for `dict`.