fix bad css scoping in JS version for <modal>