[web] 2 small fixes to JavaScript code (#27985)
### Description
2 small fixes to JavaScript code
The quote in the pre.js is important. closure compiler will skip
minimizing the property names when they are quoted. Without the quote,
the following code is generated:
```
var SharedArrayBuffer=globalThis.SharedArrayBuffer??(new WebAssembly.Memory({initial:0,maximum:0,Be:!0})).buffer.constructor;
```
property `shared` is rewritten into `Be`, which is ignored by
`WebAssembly.Memory()` and `shared` is assumed to be `false` (default
value).