Allow reading response bodies and headers in JS