Use base64-encoded JavaScript to generate response body