Re-localize nonce for JS