update http.js and media.js