modified http.js to return the full response to the file instead of just the body