JS: various workarounds for `@JavaScriptExterns`