nit: could just use `jsContext` to avoid the cast